﻿<Window x:Class="ImageTagEditor.TaskDialog"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		Title="TaskDialog" 
		Height="auto" 
		Width="500"
		x:Name="dialog" 
		ResizeMode="CanResizeWithGrip" 
		WindowStartupLocation="CenterOwner" 
		ShowInTaskbar="True">
	<Window.Background>
		<LinearGradientBrush StartPoint="0.5,0.35" 
							 EndPoint="0.5,0.65" 
							 SpreadMethod="Pad">
			<GradientStop Color="White" 
						  Offset="0" />
			<GradientStop Color="LightGray" 
						  Offset="1" />
		</LinearGradientBrush>
	</Window.Background>
	<StackPanel
		Margin="2">
		<TextBlock x:Name="captionTextBlock"
				   Text="{Binding ElementName=dialog, Path=Caption}"
				   FontSize="18"
				   TextWrapping="WrapWithOverflow"/>
		<ContentControl x:Name="messageContentControl"
						Content="{Binding ElementName=dialog, Path=Message}"
						Margin="5"/>
		<Grid Margin="0,5,0,0">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="auto" />
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="auto" />
				<ColumnDefinition Width="auto" />
			</Grid.ColumnDefinitions>
			<TextBlock x:Name="footerTextBlock"
					   Grid.Column="0"
					   Text="{Binding ElementName=dialog, Path=FootNote}"
					   FontSize="10"/>
			<Button x:Name="okButton"
					Grid.Column="2"
					Click="okButton_Click"
					Width="50"
					Margin="0,0,5,0">
				OK
			</Button>
			<Button x:Name="cancelButton"
					Grid.Column="3"
					Click="cancelButton_Click"
					Width="50"
					Visibility="{Binding ElementName=dialog, Path=CancelButtonVisibility}">
				Cancel
			</Button>
		</Grid>
	</StackPanel>
</Window>
